package com.coco.common.constant;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/7/30 16:58
 */
public enum GroupBuyEnum {

    /**
     * 登录超时
     */
    ACTIVITY_NOT_START(1001,"活动未开始!"),
    ACTIVITY_IS_OVER(1002,"活动已结束!"),
    UNDER_STOCK(1003,"商品库存不足,无法拼团!"),
    ORDER_NO_PAY(1004,"您还有订单未支付!");
//    ACTIVITY_IS_OVER(1002,"活动已结束!"),

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 回调信息
     */
    private final String message;

    GroupBuyEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
